<h1>Autors List</h1>

<table>
  <thead>
    <tr>
      <th>Id autor</th>
      <th>Nume</th>
      <th>Prenume</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($autors as $autor): ?>
    <tr>
      <td><a href="<?php echo url_for('autor/show?id_autor='.$autor->getIdAutor()) ?>"><?php echo $autor->getIdAutor() ?></a></td>
      <td><?php echo $autor->getNume() ?></td>
      <td><?php echo $autor->getPrenume() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('autor/new') ?>">New</a>
